package com.learn.iot.component.impl;

import com.learn.iot.component.CityInfoComponent;
import com.learn.iot.mapper.CityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component("cityInfoComponent")
public class CityInfoComponentImpl implements CityInfoComponent {

	@Autowired
	private CityMapper cityMapper;

	@Override
	public void query() {

		System.out.println("get city from db");
//		List<Map<String, Object>> maps = cityMapper.queryAddress();
//		maps.forEach(item -> {
//			System.out.println(item);
//		});

	}

}
